<!DOCTYPE html>
<style>
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

#frame {
    position: absolute;
    left: 0;
    top: 400px;
    width: 300px;
    height: 200px;
    border: 0;
    transform-origin: 0 0;
    transform: scale(2);
}

#bloat {
    height: 2000px
}
</style>
<iframe id="frame" src="resources/transformed-frame-scrolledIntoView-frame.html"></iframe>
<div id="bloat">
</div>
<script>
if (window.testRunner) {
    testRunner.waitUntilDone();
    testRunner.dumpAsLayoutWithPixelResults();
    testRunner.dumpChildFrames();
}
document.getElementById('frame').contentWindow.addEventListener('load', function() {
    document.getElementById('frame').contentDocument.getElementById('green').scrollIntoViewIfNeeded(false);
    if (window.testRunner)
        testRunner.notifyDone();
});
</script>
